cmake_minimum_required(VERSION 3.5)
project(threadpool LANGUAGES "ASM" "C" "CXX")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

if(CMAKE_BUILD_TYPE STREQUAL "Release")
    set(CMAKE_BUILD_TYPE "Release")
else()
    set(CMAKE_BUILD_TYPE "Debug")
endif()

include_directories(${PROJECT_SOURCE_DIR})

file(GLOB SRC_FILES
        *.cpp
        )

add_executable(${PROJECT_NAME}
        ${SRC_FILES}
        )

target_link_libraries(${PROJECT_NAME}
        pthread
        )
